<template>
	<div>
		<h1>会员</h1>
	</div>
</template>

<script>
	import storage from '@/utils/localstorage'

	export default {
	
		components: {
			
		},
		name: "Member",
		mounted() {
			//调用接口让过滤器拦截页面
			this.$axios.get('/dishes/test')
				.then(res => {
					console.log(res);
				})
		},
		methods: {
			
			//注销登录,退出登录
			logout() {
				console.log("退出登录")
				//移除 uid和 token
				storage.remove('uid') //移除uid
				storage.remove('token') //移除token
				this.$router.push('/login');
			},
			getAddShop() {
				this.$router.push('/addShop')
			},
	
		}
	}
</script>

<style scoped>
	
</style>